package com.example.demo.project.entity.qqto;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document
public class OneNews{
    private String username;
    private String message;
    private Date dateTime;
    public OneNews(){

    }
    public OneNews(String username,String message){
        this.username = username;
        this.message = message;
        this.dateTime = new Date();
    }
}